package com.ai.wx.entity;

// Generated 2015-6-12 11:17:44 by Hibernate Tools 4.0.0

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * ProductOrder generated by hbm2java
 */
@Entity
@Table(name = "product_order_pre", catalog = "wx")
public class ProductOrderPre implements java.io.Serializable {

	private Integer id;
	private String outTradeNo;
	private String transactionId;
	private String prepayId;
	private String openid;
	private String mobile;
	private String productId;
	private Date orderDate;
	private Integer tariff;
	private Integer price;
	private Integer discount;
	private Integer brokerage;
	private Integer rate;
	private String promotionCode;
	private Integer agentId;
	private Integer orderState;
	private String orderMsg;
	private Integer state;
	private Date crtDate;
	private Date modDate;
	private String crtUid;
	private String modUid;

	public ProductOrderPre() {
	}

	public ProductOrderPre(String outTradeNo, String transactionId, String prepayId, String openid, String productId, Date orderDate, Integer tariff, Integer price, Integer discount, Integer brokerage, Integer rate, String promotionCode, Integer agentId, Integer orderState, String orderMsg,
	        Integer state, Date crtDate, Date modDate, String crtUid, String modUid) {
		this.outTradeNo = outTradeNo;
		this.transactionId = transactionId;
		this.prepayId = prepayId;
		this.openid = openid;
		this.productId = productId;
		this.orderDate = orderDate;
		this.tariff = tariff;
		this.price = price;
		this.discount = discount;
		this.brokerage = brokerage;
		this.rate = rate;
		this.promotionCode = promotionCode;
		this.agentId = agentId;
		this.orderState = orderState;
		this.orderMsg = orderMsg;
		this.state = state;
		this.crtDate = crtDate;
		this.modDate = modDate;
		this.crtUid = crtUid;
		this.modUid = modUid;
	}


	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "Id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(name = "out_trade_no")
	public String getOutTradeNo() {
		return this.outTradeNo;
	}

	public void setOutTradeNo(String outTradeNo) {
		this.outTradeNo = outTradeNo;
	}
	
	
	@Column(name = "transaction_id", length = 64)
	public String getTransactionId() {
		return this.transactionId;
	}

	public void setTransactionId(String transactionId) {
		this.transactionId = transactionId;
	}

	@Column(name = "prepay_id", length = 128)
	public String getPrepayId() {
		return this.prepayId;
	}

	public void setPrepayId(String prepayId) {
		this.prepayId = prepayId;
	}
	
	@Column(name = "openid")
	public String getOpenid() {
		return this.openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	@Column(name = "mobile")
	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	@Column(name = "product_id", length = 11)
	public String getProductId() {
		return this.productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@Temporal(TemporalType.TIMESTAMP) 
	@Column(name = "order_date", length = 0)
	public Date getOrderDate() {
		return this.orderDate;
	}

	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}

	@Column(name = "tariff")
	public Integer getTariff() {
		return this.tariff;
	}

	public void setTariff(Integer tariff) {
		this.tariff = tariff;
	}

	@Column(name = "price")
	public Integer getPrice() {
		return this.price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	@Column(name = "discount")
	public Integer getDiscount() {
		return this.discount;
	}

	public void setDiscount(Integer discount) {
		this.discount = discount;
	}

	@Column(name = "brokerage")
	public Integer getBrokerage() {
		return this.brokerage;
	}

	public void setBrokerage(Integer brokerage) {
		this.brokerage = brokerage;
	}

	@Column(name = "rate")
	public Integer getRate() {
		return this.rate;
	}

	public void setRate(Integer rate) {
		this.rate = rate;
	}

	@Column(name = "promotion_code")
	public String getPromotionCode() {
		return this.promotionCode;
	}

	public void setPromotionCode(String promotionCode) {
		this.promotionCode = promotionCode;
	}

	@Column(name = "agent_id")
	public Integer getAgentId() {
		return this.agentId;
	}

	public void setAgentId(Integer agentId) {
		this.agentId = agentId;
	}

	@Column(name = "order_state")
	public Integer getOrderState() {
		return this.orderState;
	}

	public void setOrderState(Integer orderState) {
		this.orderState = orderState;
	}

	@Column(name = "order_msg", length = 1000)
	public String getOrderMsg() {
		return this.orderMsg;
	}

	public void setOrderMsg(String orderMsg) {
		this.orderMsg = orderMsg;
	}

	@Column(name = "state")
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "crt_date", length = 0)
	public Date getCrtDate() {
		return this.crtDate;
	}

	public void setCrtDate(Date crtDate) {
		this.crtDate = crtDate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "mod_date", length = 0)
	public Date getModDate() {
		return this.modDate;
	}

	public void setModDate(Date modDate) {
		this.modDate = modDate;
	}

	@Column(name = "crt_uid")
	public String getCrtUid() {
		return this.crtUid;
	}

	public void setCrtUid(String crtUid) {
		this.crtUid = crtUid;
	}

	@Column(name = "mod_uid")
	public String getModUid() {
		return this.modUid;
	}

	public void setModUid(String modUid) {
		this.modUid = modUid;
	}

}
